SRCS:=$(wildcard *.c)
OBJECTS:=$(patsubst %.c, %.o, $(SRCS))
CC:=gcc
LIBS:=-lpthread
LCYT:=-lcrypt
CLIENT:=client


$(CLIENT):$(OBJECTS)
	$(CC) $^ -o $@  $(LIBS) $(LCYT) -g

%.o:%.c
	$(CC) -c $^ -o $@ $(LIBS) $(LCYT) -g
print:
	echo $(OBJECTS)
clean:
	rm -rf $(OBJECTS) $(CLIENT)
